package com.ksd.modules.note.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.note.entity.AdminNoteChapter;
import com.ksd.modules.note.po.AdminNoteChapterSavePO;
import com.ksd.modules.note.vo.AdminNoteChapterVo;

import java.util.List;

public interface IAdminNoteChapterService extends IBaseService<AdminNoteChapter> {


    /**
     * 查询列表
     * @param noteId
     * @return
     */
    List<AdminNoteChapterVo> findAdminNoteChapters(Long noteId);

    /**
     * 保存和更新
     * @param adminNoteChapterSavePO
     * @return
     */
    Boolean saveUpdateAdminNoteChapter(AdminNoteChapterSavePO adminNoteChapterSavePO);

    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    AdminNoteChapterVo getAdminNoteChapterById(Long id);


    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminNoteChapterById(Long id);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 根据课程删除章
     * @param noteId
     * @return
     */
    boolean removeByNoteId(Long noteId);
    boolean removeByNoteIds(List<Long> noteIds);
}
